import axios from 'axios';

const evalute = {

  //满意度调查展示
  Satisfaction: function (token, callback) {
    this.publicAxiosPostMsg('/home/survey/get?token='+token, {}, callback);
  },


  //公共post接口
  publicAxiosPostMsg: function (methods, data, success, error) {
    axios.post(process.env.API_URL + methods, data).then(function (res) {
      if (success) {
        success(res.data);
      }
    }).catch(function (error) {
      console.log(error);
      if (error) {
        error(error);
      }
    });
  }

};
export default evalute;
